﻿<%@ Page Language="c#" CodeBehind="StaffList.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.StaffListPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>StaffList</title>
  <script type="text/javascript">
  //<!--
	function Execute()
	{
		alert(opener.document.ClientContact.lbx_Cooperater.options.length);
		//opener.document.ClientContact.lbx_Cooperater.options.add(new Option("2", "2"));
		/*
		for(var i=0;i<document.StaffList.lbx_Staff.options.length;i++)
		{
			if(document.StaffList.lbx_Staff.options[i].selected)
			{
				var oOption = document.createElement("OPTION");
				oOption.innerText = document.StaffList.lbx_Staff.options[i].text;
				oOption.Value = document.StaffList.lbx_Staff.options[i].value;
				//opener.document.ClientContact.lbx_Cooperater.options.add(oOption);
				

			}
		}	
	*/
	}
  //-->
  </script>
</head>
<body>
  <form id="StaffList" method="post" runat="server">
    <table id="Table1" cellspacing="1" cellpadding="1" width="100%" border="1">
      <tr>
        <td>
          <asp:ListBox ID="lbx_Staff" runat="server" Width="203px" Height="208px" SelectionMode="Multiple" />
        </td>
      </tr>
      <tr>
        <td><input type="button" value="Button" onclick="Execute();"></td>
      </tr>
    </table>
  </form>
</body>
</html>
